
import java.text.SimpleDateFormat;
import java.util.Date;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Hieu.Nguyen
 */
public class DDD {
    public static void main(String[] args) {
       Date date = new Date();
String strDateFormat24 = "HH:mm:ss";
SimpleDateFormat simpleDateFormat  ;
simpleDateFormat = new SimpleDateFormat(strDateFormat24);
String d = simpleDateFormat.format(date);
System.out.println( d); 
    }
}
